package com.woniuxy.api;


import com.woniuxy.common.PageResult;
import com.woniuxy.common.Result;
import com.woniuxy.form.UserCreditForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user",contextId = "userCredit")
public interface UserCredit {

    /**
     *
     * 增加积分变动记录
     * @param form
     * @return
     */
    @PostMapping("/addUserCredit")
    Result addUserCredit(UserCreditForm form);

    /**
     * 分页查询积分记录
     * @return
     */
    @GetMapping("/findUserCredit")
    PageResult findUserCredit(@RequestParam("pageIndex") int pageIndex);







}
